const mongoose = require('mongoose')

let adminSchema = new mongoose.Schema({
    account: String,
    password: String,
    admin:{
        type:Boolean,
        default:false,
    },
    avatar:{
        type:String,
        default:'',
    },
    userName:{
        type: String,
        default: '',
    }
})

let adminModel = mongoose.model('admin', adminSchema)

module.exports = adminModel